Optimal. Leaf size=206 \[ -\frac{a+b \tan ^{-1}(c x)}{3 e (d+e x)^3}-\frac{b c^3 \left (3 c^2 d^2-e^2\right ) \log \left (c^2 x^2+1\right )}{6 \left (c^2 d^2+e^2\right )^3}-\frac{2 b c^3 d}{3 \left (c^2 d^2+e^2\right )^2 (d+e x)}-\frac{b c}{6 \left (c^2 d^2+e^2\right ) (d+e x)^2}+\frac{b c^3 \left (3 c^2 d^2-e^2\right ) \log (d+e x)}{3 \left (c^2 d^2+e^2\right )^3}+\frac{b c^4 d \left (c^2 d^2-3 e^2\right ) \tan ^{-1}(c x)}{3 e \left (c^2 d^2+e^2\right )^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.182223, antiderivative size = 206, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.375, Rules used = {4862, 710, 801, 635, 203, 260} \[ -\frac{a+b \tan ^{-1}(c x)}{3 e (d+e x)^3}-\frac{b c^3 \left (3 c^2 d^2-e^2\right ) \log \left (c^2 x^2+1\right )}{6 \left (c^2 d^2+e^2\right )^3}-\frac{2 b c^3 d}{3 \left (c^2 d^2+e^2\right )^2 (d+e x)}-\frac{b c}{6 \left (c^2 d^2+e^2\right ) (d+e x)^2}+\frac{b c^3 \left (3 c^2 d^2-e^2\right ) \log (d+e x)}{3 \left (c^2 d^2+e^2\right )^3}+\frac{b c^4 d \left (c^2 d^2-3 e^2\right ) \tan ^{-1}(c x)}{3 e \left (c^2 d^2+e^2\right )^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4862
Rule 710
Rule 801
Rule 635
Rule 203
Rule 260
Rubi steps
\begin{align*} \int \frac{a+b \tan ^{-1}(c x)}{(d+e x)^4} \, dx &=-\frac{a+b \tan ^{-1}(c x)}{3 e (d+e x)^3}+\frac{(b c) \int \frac{1}{(d+e x)^3 \left (1+c^2 x^2\right )} \, dx}{3 e}\\ &=-\frac{b c}{6 \left (c^2 d^2+e^2\right ) (d+e x)^2}-\frac{a+b \tan ^{-1}(c x)}{3 e (d+e x)^3}+\frac{\left (b c^3\right ) \int \frac{d-e x}{(d+e x)^2 \left (1+c^2 x^2\right )} \, dx}{3 e \left (c^2 d^2+e^2\right )}\\ &=-\frac{b c}{6 \left (c^2 d^2+e^2\right ) (d+e x)^2}-\frac{a+b \tan ^{-1}(c x)}{3 e (d+e x)^3}+\frac{\left (b c^3\right ) \int \left (\frac{2 d e^2}{\left (c^2 d^2+e^2\right ) (d+e x)^2}-\frac{e^2 \left (-3 c^2 d^2+e^2\right )}{\left (c^2 d^2+e^2\right )^2 (d+e x)}+\frac{c^2 d \left (c^2 d^2-3 e^2\right )-c^2 e \left (3 c^2 d^2-e^2\right ) x}{\left (c^2 d^2+e^2\right )^2 \left (1+c^2 x^2\right )}\right ) \, dx}{3 e \left (c^2 d^2+e^2\right )}\\ &=-\frac{b c}{6 \left (c^2 d^2+e^2\right ) (d+e x)^2}-\frac{2 b c^3 d}{3 \left (c^2 d^2+e^2\right )^2 (d+e x)}-\frac{a+b \tan ^{-1}(c x)}{3 e (d+e x)^3}+\frac{b c^3 \left (3 c^2 d^2-e^2\right ) \log (d+e x)}{3 \left (c^2 d^2+e^2\right )^3}+\frac{\left (b c^3\right ) \int \frac{c^2 d \left (c^2 d^2-3 e^2\right )-c^2 e \left (3 c^2 d^2-e^2\right ) x}{1+c^2 x^2} \, dx}{3 e \left (c^2 d^2+e^2\right )^3}\\ &=-\frac{b c}{6 \left (c^2 d^2+e^2\right ) (d+e x)^2}-\frac{2 b c^3 d}{3 \left (c^2 d^2+e^2\right )^2 (d+e x)}-\frac{a+b \tan ^{-1}(c x)}{3 e (d+e x)^3}+\frac{b c^3 \left (3 c^2 d^2-e^2\right ) \log (d+e x)}{3 \left (c^2 d^2+e^2\right )^3}+\frac{\left (b c^5 d \left (c^2 d^2-3 e^2\right )\right ) \int \frac{1}{1+c^2 x^2} \, dx}{3 e \left (c^2 d^2+e^2\right )^3}-\frac{\left (b c^5 \left (3 c^2 d^2-e^2\right )\right ) \int \frac{x}{1+c^2 x^2} \, dx}{3 \left (c^2 d^2+e^2\right )^3}\\ &=-\frac{b c}{6 \left (c^2 d^2+e^2\right ) (d+e x)^2}-\frac{2 b c^3 d}{3 \left (c^2 d^2+e^2\right )^2 (d+e x)}+\frac{b c^4 d \left (c^2 d^2-3 e^2\right ) \tan ^{-1}(c x)}{3 e \left (c^2 d^2+e^2\right )^3}-\frac{a+b \tan ^{-1}(c x)}{3 e (d+e x)^3}+\frac{b c^3 \left (3 c^2 d^2-e^2\right ) \log (d+e x)}{3 \left (c^2 d^2+e^2\right )^3}-\frac{b c^3 \left (3 c^2 d^2-e^2\right ) \log \left (1+c^2 x^2\right )}{6 \left (c^2 d^2+e^2\right )^3}\\ \end{align*}
Mathematica [A] time = 0.640897, size = 254, normalized size = 1.23 \[ -\frac{2 \left (a+b \tan ^{-1}(c x)\right )+\frac{b c (d+e x) \left (4 c^2 d e \left (c^2 d^2+e^2\right ) (d+e x)-c^2 \left (c^2 d^2 \left (\sqrt{-c^2} d-3 e\right )+e^2 \left (e-3 \sqrt{-c^2} d\right )\right ) \log \left (1-\sqrt{-c^2} x\right ) (d+e x)^2-c^2 \left (e^2 \left (3 \sqrt{-c^2} d+e\right )-c^2 d^2 \left (\sqrt{-c^2} d+3 e\right )\right ) \log \left (\sqrt{-c^2} x+1\right ) (d+e x)^2-2 c^2 e \left (3 c^2 d^2-e^2\right ) (d+e x)^2 \log (d+e x)+e \left (c^2 d^2+e^2\right )^2\right )}{\left (c^2 d^2+e^2\right )^3}}{6 e (d+e x)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.036, size = 282, normalized size = 1.4 \begin{align*} -{\frac{a{c}^{3}}{3\, \left ( ecx+dc \right ) ^{3}e}}-{\frac{{c}^{3}b\arctan \left ( cx \right ) }{3\, \left ( ecx+dc \right ) ^{3}e}}-{\frac{{c}^{3}b}{ \left ( 6\,{c}^{2}{d}^{2}+6\,{e}^{2} \right ) \left ( ecx+dc \right ) ^{2}}}+{\frac{{c}^{5}b\ln \left ( ecx+dc \right ){d}^{2}}{ \left ({c}^{2}{d}^{2}+{e}^{2} \right ) ^{3}}}-{\frac{{c}^{3}b{e}^{2}\ln \left ( ecx+dc \right ) }{3\, \left ({c}^{2}{d}^{2}+{e}^{2} \right ) ^{3}}}-{\frac{2\,b{c}^{4}d}{3\, \left ({c}^{2}{d}^{2}+{e}^{2} \right ) ^{2} \left ( ecx+dc \right ) }}-{\frac{b{c}^{5}\ln \left ({c}^{2}{x}^{2}+1 \right ){d}^{2}}{2\, \left ({c}^{2}{d}^{2}+{e}^{2} \right ) ^{3}}}+{\frac{{c}^{3}b{e}^{2}\ln \left ({c}^{2}{x}^{2}+1 \right ) }{6\, \left ({c}^{2}{d}^{2}+{e}^{2} \right ) ^{3}}}+{\frac{{c}^{6}b\arctan \left ( cx \right ){d}^{3}}{3\, \left ({c}^{2}{d}^{2}+{e}^{2} \right ) ^{3}e}}-{\frac{b{c}^{4}e\arctan \left ( cx \right ) d}{ \left ({c}^{2}{d}^{2}+{e}^{2} \right ) ^{3}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.55636, size = 505, normalized size = 2.45 \begin{align*} -\frac{1}{6} \,{\left (c{\left (\frac{{\left (3 \, c^{4} d^{2} - c^{2} e^{2}\right )} \log \left (c^{2} x^{2} + 1\right )}{c^{6} d^{6} + 3 \, c^{4} d^{4} e^{2} + 3 \, c^{2} d^{2} e^{4} + e^{6}} - \frac{2 \,{\left (3 \, c^{4} d^{2} - c^{2} e^{2}\right )} \log \left (e x + d\right )}{c^{6} d^{6} + 3 \, c^{4} d^{4} e^{2} + 3 \, c^{2} d^{2} e^{4} + e^{6}} + \frac{4 \, c^{2} d e x + 5 \, c^{2} d^{2} + e^{2}}{c^{4} d^{6} + 2 \, c^{2} d^{4} e^{2} + d^{2} e^{4} +{\left (c^{4} d^{4} e^{2} + 2 \, c^{2} d^{2} e^{4} + e^{6}\right )} x^{2} + 2 \,{\left (c^{4} d^{5} e + 2 \, c^{2} d^{3} e^{3} + d e^{5}\right )} x} - \frac{2 \,{\left (c^{6} d^{3} - 3 \, c^{4} d e^{2}\right )} \arctan \left (c x\right )}{{\left (c^{6} d^{6} e + 3 \, c^{4} d^{4} e^{3} + 3 \, c^{2} d^{2} e^{5} + e^{7}\right )} c}\right )} + \frac{2 \, \arctan \left (c x\right )}{e^{4} x^{3} + 3 \, d e^{3} x^{2} + 3 \, d^{2} e^{2} x + d^{3} e}\right )} b - \frac{a}{3 \,{\left (e^{4} x^{3} + 3 \, d e^{3} x^{2} + 3 \, d^{2} e^{2} x + d^{3} e\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 8.10537, size = 1280, normalized size = 6.21 \begin{align*} -\frac{2 \, a c^{6} d^{6} + 5 \, b c^{5} d^{5} e + 6 \, a c^{4} d^{4} e^{2} + 6 \, b c^{3} d^{3} e^{3} + 6 \, a c^{2} d^{2} e^{4} + b c d e^{5} + 2 \, a e^{6} + 4 \,{\left (b c^{5} d^{3} e^{3} + b c^{3} d e^{5}\right )} x^{2} +{\left (9 \, b c^{5} d^{4} e^{2} + 10 \, b c^{3} d^{2} e^{4} + b c e^{6}\right )} x + 2 \,{\left (6 \, b c^{4} d^{4} e^{2} + 3 \, b c^{2} d^{2} e^{4} + b e^{6} -{\left (b c^{6} d^{3} e^{3} - 3 \, b c^{4} d e^{5}\right )} x^{3} - 3 \,{\left (b c^{6} d^{4} e^{2} - 3 \, b c^{4} d^{2} e^{4}\right )} x^{2} - 3 \,{\left (b c^{6} d^{5} e - 3 \, b c^{4} d^{3} e^{3}\right )} x\right )} \arctan \left (c x\right ) +{\left (3 \, b c^{5} d^{5} e - b c^{3} d^{3} e^{3} +{\left (3 \, b c^{5} d^{2} e^{4} - b c^{3} e^{6}\right )} x^{3} + 3 \,{\left (3 \, b c^{5} d^{3} e^{3} - b c^{3} d e^{5}\right )} x^{2} + 3 \,{\left (3 \, b c^{5} d^{4} e^{2} - b c^{3} d^{2} e^{4}\right )} x\right )} \log \left (c^{2} x^{2} + 1\right ) - 2 \,{\left (3 \, b c^{5} d^{5} e - b c^{3} d^{3} e^{3} +{\left (3 \, b c^{5} d^{2} e^{4} - b c^{3} e^{6}\right )} x^{3} + 3 \,{\left (3 \, b c^{5} d^{3} e^{3} - b c^{3} d e^{5}\right )} x^{2} + 3 \,{\left (3 \, b c^{5} d^{4} e^{2} - b c^{3} d^{2} e^{4}\right )} x\right )} \log \left (e x + d\right )}{6 \,{\left (c^{6} d^{9} e + 3 \, c^{4} d^{7} e^{3} + 3 \, c^{2} d^{5} e^{5} + d^{3} e^{7} +{\left (c^{6} d^{6} e^{4} + 3 \, c^{4} d^{4} e^{6} + 3 \, c^{2} d^{2} e^{8} + e^{10}\right )} x^{3} + 3 \,{\left (c^{6} d^{7} e^{3} + 3 \, c^{4} d^{5} e^{5} + 3 \, c^{2} d^{3} e^{7} + d e^{9}\right )} x^{2} + 3 \,{\left (c^{6} d^{8} e^{2} + 3 \, c^{4} d^{6} e^{4} + 3 \, c^{2} d^{4} e^{6} + d^{2} e^{8}\right )} x\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 10.9004, size = 1042, normalized size = 5.06 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]